package com.itheima.staticAgent;

public class StaticProxy {
    public static void main(String[] args) {
        //创建真实用户
        Star actor = new FGStar("铁窗泪");
        // 创建代理对象
        Star agent = new ZhongjieAgent(actor, "售票", "清场");
        // 调用代理对象的方法
        agent.sing();
    }
}


